using System;
using Parser = Velocity4Net.Runtime.Parse.Parser;
using MethodInvocationException = Velocity4Net.Errors.MethodInvocationException;
using ParseErrorException = Velocity4Net.Errors.ParseErrorException;
using ResourceNotFoundException = Velocity4Net.Errors.ResourceNotFoundException;
using Velocity4Net.Ctx;

namespace Velocity4Net.Runtime.Parse.AST
{
    public class ASTBlock : SimpleNode
    {
        public ASTBlock(int id) : base(id) { }

        public ASTBlock(Parser p, int id) : base(p, id) { }

        public override bool Render(InternalContextAdapter context, System.IO.TextWriter writer)
        {
            int i, k = jjtGetNumChildren();

            for (i = 0; i < k; i++)
                jjtGetChild(i).Render(context, writer);

            return true;
        }
    }
}
